package com.lucy.flow.event;

import com.lucy.flow.domain.entity.FlowWork;
import lombok.Getter;
import org.springframework.context.ApplicationEvent;

import java.time.Clock;

/**
 * @author kindear
 * 流程实例创建事件
 */
@Getter
public class FlowWorkCreatedEvent extends ApplicationEvent {
    FlowWork flowWork;

    public FlowWorkCreatedEvent(Object source,FlowWork flowWork) {
        super(source);
        this.flowWork = flowWork;
    }

    public FlowWorkCreatedEvent(Object source, Clock clock) {
        super(source, clock);
    }
}
